package com.baidumap.administrator.happystudy.model;

import com.ab.util.AbJsonUtil;

import java.util.List;

/**
 * 描述：
 * 作者：xiaoxing on 17/4/10 22:58
 * 邮箱：2235445233@qq.com
 */
public class IndexHome {


    /**
     * code : 200
     * msg : success
     * data : {"category":[{"category_id":"22","category_name":"化妆品类","category_icon":null,"up_id":null,"level":null,"usetype":null,"index":"1"},{"category_id":"23","category_name":"外卖类","category_icon":null,"up_id":null,"level":null,"usetype":null,"index":"1"},{"category_id":"24","category_name":"超市类","category_icon":null,"up_id":null,"level":null,"usetype":null,"index":"1"}],"adv":[{"id":"1","imgurl":"http://bc.bvhao.cc/Uploads/2017-04-15/58f0f2883f54e.jpg","url":"http://www.baidu.com","dateline":"1492185736","type":"1"},{"id":"2","imgurl":"http://bc.bvhao.cc/Uploads/2017-04-17/58f40cb26a2b6.jpg","url":"http://www.baidu.com","dateline":"1492389042","type":"1"},{"id":"3","imgurl":"http://bc.bvhao.cc/Uploads/2017-04-17/58f40ab09617c.png","url":"www.baidu.com","dateline":"1492388528","type":"1"},{"id":"4","imgurl":"http://bc.bvhao.cc/Uploads/2017-04-15/58f0f2be905fb.jpg","url":"http://www.baidu.com","dateline":"1492185790","type":"1"}],"message":"经河北省教育厅正式批准，河北体育学院东方大学城基地于在廊坊成立，下设社会体育专业高尔夫球管理方向和运动训练专业网球运动方向。","product":[{"product_id":"2184","product_name":"韭菜鸡蛋水饺","product_pic1":"http://bc.bvhao.cc/Uploads/2017-04-15/58f0f9896debf.jpg","price":"11.00","price_tuangou":"10.90"},{"product_id":"2177","product_name":"手工牛肉水饺","product_pic1":"http://bc.bvhao.cc/Uploads/2017-04-15/58f0f9b1efad8.jpg","price":"13.00","price_tuangou":"12.90"},{"product_id":"2119","product_name":"韭菜肉","product_pic1":"http://bc.bvhao.cc/Uploads/2017-04-15/58f0fb90ca313.jpg","price":"10.00","price_tuangou":"9.90"},{"product_id":"2118","product_name":"白菜鲜肉","product_pic1":"","price":"10.00","price_tuangou":"9.90"}],"makeup":[{"shop_id":"487","shop_name":"阿莱化妆店","cover":"http://bc.bvhao.cc/Uploads/2017-04-17/58f40011e8bca.png","introduce":null},{"shop_id":"486","shop_name":"倩影化妆店","cover":"http://bc.bvhao.cc/Uploads/2017-04-17/58f3ffa22452f.jpg","introduce":null},{"shop_id":"485","shop_name":"美丽化妆店","cover":"http://bc.bvhao.cc/Uploads/2017-04-17/58f3fe8aec284.png","introduce":null}],"market":[{"shop_id":"484","shop_name":"衡水","cover":"http://bc.bvhao.cc/Uploads/2017-04-16/58f2ff3e877a8.jpg","introduce":null},{"shop_id":"483","shop_name":"财经一号楼","cover":"http://bc.bvhao.cc/Uploads/2017-04-15/58f192b62d7ca.jpg","introduce":null},{"shop_id":"482","shop_name":"财经三号楼","cover":"http://bc.bvhao.cc/Uploads/2017-04-15/58f1918d880b5.jpg","introduce":null},{"shop_id":"481","shop_name":"财经七号楼","cover":"http://bc.bvhao.cc/Uploads/2017-04-15/58f18c9d17337.jpg","introduce":null}],"teacher":[{"teacher_id":"20","pic":"http://bc.bvhao.cc/Uploads/2017-04-14/58f0ea54c4b33.jpg","name":"吴裕隆","type":"英语系老师"},{"teacher_id":"19","pic":"http://bc.bvhao.cc/Uploads/2017-04-14/58f0e897491e0.jpg","name":" 连 小蓉","type":"英语系老师"},{"teacher_id":"17","pic":"http://bc.bvhao.cc/Uploads/2017-04-14/58f0a90044604.jpg","name":"李宏涛","type":"语文系  老师"},{"teacher_id":"15","pic":"http://bc.bvhao.cc/Uploads/2017-04-14/58f0a4fd1aed9.jpg","name":"李彪","type":"物理系老师"}]}
     */

    private String code;
    private String msg;
    private DataBean data;

    /**
     * 用json构造自己
     *
     * @param json
     */
    public IndexHome(String json) {
        IndexHome result = AbJsonUtil.fromJson(json, this.getClass());
        this.code = result.getCode();
        this.msg = result.getMsg();
        this.data = result.getData();

    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }


    public static class DataBean {
        /**
         * category : [{"category_id":"22","category_name":"化妆品类","category_icon":null,"up_id":null,"level":null,"usetype":null,"index":"1"},{"category_id":"23","category_name":"外卖类","category_icon":null,"up_id":null,"level":null,"usetype":null,"index":"1"},{"category_id":"24","category_name":"超市类","category_icon":null,"up_id":null,"level":null,"usetype":null,"index":"1"}]
         * adv : [{"id":"1","imgurl":"http://bc.bvhao.cc/Uploads/2017-04-15/58f0f2883f54e.jpg","url":"http://www.baidu.com","dateline":"1492185736","type":"1"},{"id":"2","imgurl":"http://bc.bvhao.cc/Uploads/2017-04-17/58f40cb26a2b6.jpg","url":"http://www.baidu.com","dateline":"1492389042","type":"1"},{"id":"3","imgurl":"http://bc.bvhao.cc/Uploads/2017-04-17/58f40ab09617c.png","url":"www.baidu.com","dateline":"1492388528","type":"1"},{"id":"4","imgurl":"http://bc.bvhao.cc/Uploads/2017-04-15/58f0f2be905fb.jpg","url":"http://www.baidu.com","dateline":"1492185790","type":"1"}]
         * message : 经河北省教育厅正式批准，河北体育学院东方大学城基地于在廊坊成立，下设社会体育专业高尔夫球管理方向和运动训练专业网球运动方向。
         * product : [{"product_id":"2184","product_name":"韭菜鸡蛋水饺","product_pic1":"http://bc.bvhao.cc/Uploads/2017-04-15/58f0f9896debf.jpg","price":"11.00","price_tuangou":"10.90"},{"product_id":"2177","product_name":"手工牛肉水饺","product_pic1":"http://bc.bvhao.cc/Uploads/2017-04-15/58f0f9b1efad8.jpg","price":"13.00","price_tuangou":"12.90"},{"product_id":"2119","product_name":"韭菜肉","product_pic1":"http://bc.bvhao.cc/Uploads/2017-04-15/58f0fb90ca313.jpg","price":"10.00","price_tuangou":"9.90"},{"product_id":"2118","product_name":"白菜鲜肉","product_pic1":"","price":"10.00","price_tuangou":"9.90"}]
         * makeup : [{"shop_id":"487","shop_name":"阿莱化妆店","cover":"http://bc.bvhao.cc/Uploads/2017-04-17/58f40011e8bca.png","introduce":null},{"shop_id":"486","shop_name":"倩影化妆店","cover":"http://bc.bvhao.cc/Uploads/2017-04-17/58f3ffa22452f.jpg","introduce":null},{"shop_id":"485","shop_name":"美丽化妆店","cover":"http://bc.bvhao.cc/Uploads/2017-04-17/58f3fe8aec284.png","introduce":null}]
         * market : [{"shop_id":"484","shop_name":"衡水","cover":"http://bc.bvhao.cc/Uploads/2017-04-16/58f2ff3e877a8.jpg","introduce":null},{"shop_id":"483","shop_name":"财经一号楼","cover":"http://bc.bvhao.cc/Uploads/2017-04-15/58f192b62d7ca.jpg","introduce":null},{"shop_id":"482","shop_name":"财经三号楼","cover":"http://bc.bvhao.cc/Uploads/2017-04-15/58f1918d880b5.jpg","introduce":null},{"shop_id":"481","shop_name":"财经七号楼","cover":"http://bc.bvhao.cc/Uploads/2017-04-15/58f18c9d17337.jpg","introduce":null}]
         * teacher : [{"teacher_id":"20","pic":"http://bc.bvhao.cc/Uploads/2017-04-14/58f0ea54c4b33.jpg","name":"吴裕隆","type":"英语系老师"},{"teacher_id":"19","pic":"http://bc.bvhao.cc/Uploads/2017-04-14/58f0e897491e0.jpg","name":" 连 小蓉","type":"英语系老师"},{"teacher_id":"17","pic":"http://bc.bvhao.cc/Uploads/2017-04-14/58f0a90044604.jpg","name":"李宏涛","type":"语文系  老师"},{"teacher_id":"15","pic":"http://bc.bvhao.cc/Uploads/2017-04-14/58f0a4fd1aed9.jpg","name":"李彪","type":"物理系老师"}]
         */

        private String message;
        private List<CategoryBean> category;
        private List<AdvBean> adv;
        private List<ProductBean> product;
        private List<MakeupBean> makeup;
        private List<MarketBean> market;
        private List<TeacherBean> teacher;

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public List<CategoryBean> getCategory() {
            return category;
        }

        public void setCategory(List<CategoryBean> category) {
            this.category = category;
        }

        public List<AdvBean> getAdv() {
            return adv;
        }

        public void setAdv(List<AdvBean> adv) {
            this.adv = adv;
        }

        public List<ProductBean> getProduct() {
            return product;
        }

        public void setProduct(List<ProductBean> product) {
            this.product = product;
        }

        public List<MakeupBean> getMakeup() {
            return makeup;
        }

        public void setMakeup(List<MakeupBean> makeup) {
            this.makeup = makeup;
        }

        public List<MarketBean> getMarket() {
            return market;
        }

        public void setMarket(List<MarketBean> market) {
            this.market = market;
        }

        public List<TeacherBean> getTeacher() {
            return teacher;
        }

        public void setTeacher(List<TeacherBean> teacher) {
            this.teacher = teacher;
        }

        public static class CategoryBean {
            /**
             * category_id : 22
             * category_name : 化妆品类
             * category_icon : null
             * up_id : null
             * level : null
             * usetype : null
             * index : 1
             */

            private String category_id;
            private String category_name;
            private String category_icon;
            private String up_id;
            private String level;
            private String usetype;
            private String index;

            public String getCategory_id() {
                return category_id;
            }

            public void setCategory_id(String category_id) {
                this.category_id = category_id;
            }

            public String getCategory_name() {
                return category_name;
            }

            public void setCategory_name(String category_name) {
                this.category_name = category_name;
            }

            public String getCategory_icon() {
                return category_icon;
            }

            public void setCategory_icon(String category_icon) {
                this.category_icon = category_icon;
            }

            public String getUp_id() {
                return up_id;
            }

            public void setUp_id(String up_id) {
                this.up_id = up_id;
            }

            public String getLevel() {
                return level;
            }

            public void setLevel(String level) {
                this.level = level;
            }

            public String getUsetype() {
                return usetype;
            }

            public void setUsetype(String usetype) {
                this.usetype = usetype;
            }

            public String getIndex() {
                return index;
            }

            public void setIndex(String index) {
                this.index = index;
            }
        }

        public static class AdvBean {
            /**
             * id : 1
             * imgurl : http://bc.bvhao.cc/Uploads/2017-04-15/58f0f2883f54e.jpg
             * url : http://www.baidu.com
             * dateline : 1492185736
             * type : 1
             */

            private String id;
            private String imgurl;
            private String url;
            private String dateline;
            private String type;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getImgurl() {
                return imgurl;
            }

            public void setImgurl(String imgurl) {
                this.imgurl = imgurl;
            }

            public String getUrl() {
                return url;
            }

            public void setUrl(String url) {
                this.url = url;
            }

            public String getDateline() {
                return dateline;
            }

            public void setDateline(String dateline) {
                this.dateline = dateline;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }
        }

        public static class ProductBean {
            /**
             * product_id : 2184
             * product_name : 韭菜鸡蛋水饺
             * product_pic1 : http://bc.bvhao.cc/Uploads/2017-04-15/58f0f9896debf.jpg
             * price : 11.00
             * price_tuangou : 10.90
             */

            private String product_id;
            private String product_name;
            private String product_pic1;
            private String price;
            private String price_tuangou;

            public String getProduct_id() {
                return product_id;
            }

            public void setProduct_id(String product_id) {
                this.product_id = product_id;
            }

            public String getProduct_name() {
                return product_name;
            }

            public void setProduct_name(String product_name) {
                this.product_name = product_name;
            }

            public String getProduct_pic1() {
                return product_pic1;
            }

            public void setProduct_pic1(String product_pic1) {
                this.product_pic1 = product_pic1;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public String getPrice_tuangou() {
                return price_tuangou;
            }

            public void setPrice_tuangou(String price_tuangou) {
                this.price_tuangou = price_tuangou;
            }
        }

        public static class MakeupBean {
            /**
             * shop_id : 487
             * shop_name : 阿莱化妆店
             * cover : http://bc.bvhao.cc/Uploads/2017-04-17/58f40011e8bca.png
             * introduce : null
             */

            private String shop_id;
            private String shop_name;
            private String cover;
            private String introduce;

            public String getShop_id() {
                return shop_id;
            }

            public void setShop_id(String shop_id) {
                this.shop_id = shop_id;
            }

            public String getShop_name() {
                return shop_name;
            }

            public void setShop_name(String shop_name) {
                this.shop_name = shop_name;
            }

            public String getCover() {
                return cover;
            }

            public void setCover(String cover) {
                this.cover = cover;
            }

            public String getIntroduce() {
                return introduce;
            }

            public void setIntroduce(String introduce) {
                this.introduce = introduce;
            }
        }

        public static class MarketBean {
            /**
             * shop_id : 484
             * shop_name : 衡水
             * cover : http://bc.bvhao.cc/Uploads/2017-04-16/58f2ff3e877a8.jpg
             * introduce : null
             */

            private String shop_id;
            private String shop_name;
            private String cover;
            private String introduce;

            public String getShop_id() {
                return shop_id;
            }

            public void setShop_id(String shop_id) {
                this.shop_id = shop_id;
            }

            public String getShop_name() {
                return shop_name;
            }

            public void setShop_name(String shop_name) {
                this.shop_name = shop_name;
            }

            public String getCover() {
                return cover;
            }

            public void setCover(String cover) {
                this.cover = cover;
            }

            public String getIntroduce() {
                return introduce;
            }

            public void setIntroduce(String introduce) {
                this.introduce = introduce;
            }
        }

        public static class TeacherBean {
            /**
             * teacher_id : 20
             * pic : http://bc.bvhao.cc/Uploads/2017-04-14/58f0ea54c4b33.jpg
             * name : 吴裕隆
             * type : 英语系老师
             */

            private String teacher_id;
            private String pic;
            private String name;
            private String type;

            public String getTeacher_id() {
                return teacher_id;
            }

            public void setTeacher_id(String teacher_id) {
                this.teacher_id = teacher_id;
            }

            public String getPic() {
                return pic;
            }

            public void setPic(String pic) {
                this.pic = pic;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }
        }
    }
}
